package cn.edu.ujn.food.dao;

import cn.edu.ujn.food.entity.Ingredientstock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
@Mapper
public interface IngredientstockDao {

    Ingredientstock queryById(Integer ingreId);

    List<Ingredientstock> queryAllByLimit(Ingredientstock ingredientstock, @Param("pageable") Pageable pageable);

    long count(Ingredientstock ingredientstock);

    int insert(Ingredientstock ingredientstock);

    int insertBatch(@Param("entities") List<Ingredientstock> entities);

    int insertOrUpdateBatch(@Param("entities") List<Ingredientstock> entities);

    int update(Ingredientstock ingredientstock);

    int deleteById(Integer ingreId);

    List<Ingredientstock> selectAll(Ingredientstock ingredientstock);

    Integer selectCount();
}

